package com.shaoyu.spring.study.dto;


import com.shaoyu.spring.study.annotation.Column;

import java.io.Serializable;
import java.lang.reflect.Field;

/**
 * @author : Swicky
 * @date : 2021/7/9 - 2:16 下午
 */
public class ColumnBaseInfo implements Serializable {
    private Column column;
    private Field field;

    private ColumnBaseInfo(Column column, Field field) {
        this.column = column;
        this.field = field;
    }
    public static ColumnBaseInfo of(Column column, Field field){
        return new ColumnBaseInfo(column, field);
    }

    public Column getColumn() {
        return column;
    }

    public void setColumn(Column column) {
        this.column = column;
    }

    public Field getField() {
        return field;
    }

    public void setField(Field field) {
        this.field = field;
    }
}
